<template>
  <div>
    <router-link to="/">home</router-link>
    <router-link to="/news">news</router-link>
    <router-view />
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "我是vue组件"
    };
  }
};
</script>

<style>
</style>